/**
 *
 * Escola
 * 12/06/2012 - 16:28:14
 *
 */
package escola.dao.impl;

import escola.dao.AbstractDAO;

/**
 * @author Jonathan
 *
 */
public class DefaultDAOImpl<T> extends AbstractDAOImpl<T> implements AbstractDAO<T> {

	private Class<?> entityClass;
	
	@Override
	protected Class<?> getEntityClass() {
		return entityClass;
	}
	
	public void setEntityClass(String entityClass) {
		try {
			this.entityClass = Class.forName(entityClass);
		} catch (ClassNotFoundException e) {
			throw new RuntimeException(e);
		}
	}

}
